<?php include_once 'include/header.php'; ?>
<?php include_once 'jobcontroller.php'; ?>
<div id="content">
    <?php include_once 'include/leftsidebar.php' ?>
    <div id="cmiddle">
        <div id="content-middle">           
            <div style="margin-top:20px">
                <div  style="line-height: 36px;height:36px;border-bottom:1px solid #ccc;margin-top:30px;background: url('Images/icon/beer.png') no-repeat 5px center">
                    <b style="font-size: 1.5em;padding-left:30px">Chi tiết việc làm</b>
                </div> 
            </div>            
            <?php foreach ($list_job_ct as $row) { ?>
            <div style="margin:10px;border:1px solid #ccc;padding: 5px;">
                <b style="color:#0089FE">Tên công việc: <?php echo $row["tenvieclam"] ?></b>
                <div style="padding:5px;margin:2px;background: #e7e7e7">
                    <div style="float:left;background:url('Images/icon/cal_job.png') no-repeat 4px center">
                        <?php $date = date("d/m/Y H:i:s",  strtotime("{$row["ngaydang"]}")) ?>
                        <span style="padding-left:25px;font-style: italic"><?php echo $date ?></span>
                    </div>
                    <div style="float:left;background:url('Images/icon/user_job.png') no-repeat 4px center">                        
                        <span style="padding-left:25px;font-style: italic"><?php echo $row["fullname"] ?></span>
                    </div>
                    <div style="clear: both"></div>                    
                </div>
                <div style="padding:5px">
                    <?php echo $row["mieutacongviec"]?>
                </div>
            </div>            
            <?php } ?>            
        </div>
    </div>
    <?php include_once 'include/rightsidebar.php'; ?>
</div>
<script type="text/javascript">   
    function saveAct(){                 
            $("#job-form").submit();                                                        
    }
    $(function(){
        $("#ngaydang").datetimepicker({
            showSecond: true,
            timeFormat: 'hh:mm:ss'
        });
    })
</script>

<?php include_once 'include/footer.php' ?>